 $(document).ready(function(){
	    
	      var $container = $('#container');
	      

	      function callIsotope(){
$container.isotope({
        masonry: {
          columnWidth: 10
        },
        sortBy: 'number',
        getSortData: {
          alphabetical: function( $elem ) {
            var name = $elem.find('.name'),
                itemText = name.length ? name : $elem;
            return itemText.text();
          }
        },
        transformsEnabled: false
      });
}

$(window).load( function(){ callIsotope(); });


	      var $optionSets = $('#options .option-set'),
	          $optionLinks = $optionSets.find('a');
	
	      $optionLinks.click(function(){
	        var $this = $(this);
	        // don't proceed if already selected
	        if ( $this.hasClass('selected') ) {
	          return false;
	        }
	        var $optionSet = $this.parents('.option-set');
	        $optionSet.find('.selected').removeClass('selected');
	        $this.addClass('selected');
	  
	        // make option object dynamically, i.e. { filter: '.my-filter-class' }
	        var options = {},
	            key = $optionSet.attr('data-option-key'),
	            value = $this.attr('data-option-value');
	        // parse 'false' as false boolean
	        value = value === 'false' ? false : value;
	        options[ key ] = value;
	        if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
	          // changes in layout modes need extra logic
	          changeLayoutMode( $this, options )
	        } else {
	          // otherwise, apply new options
	          $container.isotope( options );
	        }
	        return false;
	      });

	    
			//width
		    $('.richestContent').width($('.container-inner').width()+10);
		    $(window).resize(function(){
		    	$('.richestContent').width($('.container-inner').width() - 5);
		    	$('.top-menu').width($('.container-inner').width() + 40);
			 });

		 // For Toggle Menu Bar
		      $(".btn-navbar").click( function(e){
		    	 e.preventDefault();
			     var element = $(".collapse");
			     if(!element.height()){element.animate({height:$("li", element).length*50.+'px'});}
			     else{element.animate({height:'0'});}
			   });

	    
	    
			$("div.inner-images").mousewheel(function(event, delta) {
				this.scrollLeft -= (delta * 30);
				event.preventDefault();
			});   
		
 });